home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Strings / ConstCString.cp next >
Text File  |  1997-06-28  |  325b  |  20 lines

  1. // ConstCString.cp
  2.  
  3. #ifndef ConstCString_h
  4. #include "ConstCString.h"
  5. #endif
  6.  
  7. ConstCString::ConstCString( const int8 *start )
  8.   : text( start, CStringLength( start ) )
  9.   {
  10.   }
  11.  
  12. uint32 ConstCString::CStringLength( const int8 *string )
  13.   {
  14.     uint32 length = 0;
  15.     for ( ; *string != 0; string++ )
  16.         length++;
  17.     
  18.     return length;
  19.   }
  20.